]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
blur-effect: Don't paint background using actor opacity
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 7 Feb 2020 09:10:58 +0000 (10:10 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 12 Feb 2020 14:02:28 +0000 (14:02 +0000)
The background should always be painted fully opaque, the opacity of the
actor does not change the one of the background.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991

src/shell-blur-effect.c

index 0022327467e838c6ad33372cbd55d2bc53f647df..881592027f21549629c6bcb5492b7f6bb8a88497 100644 (file)
@@ -657,16 +657,8 @@ paint_background (ShellBlurEffect     *self,
   CoglFramebuffer *framebuffer;
   float transformed_x = 0.f;
   float transformed_y = 0.f;
-  guint8 paint_opacity;
 
   framebuffer = clutter_paint_context_get_framebuffer (paint_context);
-  paint_opacity = clutter_actor_get_paint_opacity (self->actor);
-
-  cogl_pipeline_set_color4ub (self->background_fb.pipeline,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity);
 
   clutter_actor_get_transformed_position (self->actor,
                                           &transformed_x,